<div id="main">
<div id="header"><a href="<?php echo $this->baseUrl() ?>/user/"><img src="<?php echo $this->baseUrl() ?>/images/logo.gif" border="0" alt="MeziMedia" /></a>	
<?php if($this->user !=""): ?>
Welcome <?php echo $this->user['userName']; ?>, &nbsp;<a href="<?php echo $this->baseUrl() ?>/auth/logout">Log out</a><?php else: ?>&nbsp;<a href="<?php echo $this->baseUrl() ?>/auth/login">login</a>
<?php endif; ?>
</div>
<div id="tab">
	<?php if(is_array($this->menuTree['level1'])): ?>
    <ul>
		<?php foreach($this->menuTree['level1'] as $label =>$menu):?>
		<?php if($menu['selected']=='1'): ?>
		<li class="selected"><?php echo $label; ?></li>
		<?php else: ?>
		<li><a href="<?php echo $this->baseUrl() ?><?php echo $menu['url']; ?>" title="<?php echo $menu['title']?>"><?php echo $label; ?></a></li>
		<?php endif; ?>
		<?php endforeach; ?>
    </ul>
	<?php endif; ?>
	<div class="cl"></div>
</div>
<div id="submenu">
		<?php if(is_array($this->menuTree['level2'])): ?>
		<?php foreach($this->menuTree['level2'] as $label=>$menu):?>
		<?php if($menu['selected']=='1'): ?>
		<a href="#" class="selected" title="<?php echo $menu['title']?>"><?php echo $label; ?></a>
		<?php else: ?>
		<a href="<?php echo $this->baseUrl() ?><?php echo $menu['url']; ?>" title="<?php echo $menu['title']?>"><?php echo $label; ?></a>
		<?php endif; ?>
		<?php endforeach; ?>
		<?php endif; ?>
</div>
<div id="contentbox">